import request from '@/utils/request'

// 查询还款管理列表
export function listRepaymentOrder(query) {
    return request({
        url: '/business/RepaymentOrder/list',
        method: 'get',
        params: query
    })
}

// 查询还款管理详细
export function getRepaymentOrder(id) {
    return request({
        url: '/business/RepaymentOrder/' + id,
        method: 'get'
    })
}

// 新增还款管理
export function addRepaymentOrder(data) {
    return request({
        url: '/business/RepaymentOrder',
        method: 'post',
        data: data
    })
}

// 修改还款管理
export function updateRepaymentOrder(data) {
    return request({
        url: '/business/RepaymentOrder',
        method: 'put',
        data: data
    })
}

// 删除还款管理
export function delRepaymentOrder(id) {
    return request({
        url: '/business/RepaymentOrder/' + id,
        method: 'delete'
    })
}

// 导出还款管理
export function exportRepaymentOrder(query) {
    return request({
        url: '/business/RepaymentOrder/export',
        method: 'get',
        params: query
    })
}